

import java.util.*;

public class Request {
	private String Name;
	private int Contact, Time, NumofPeople;
	private GregorianCalendar Date;
	private GregorianCalendar TempDate;
	
	ReservationSystem reserve = new ReservationSystem();
	public Request() {
	
	}
	

	public void setName(String Name) {
        this.Name = Name;
    }
	
	
	public String getName() {
        return Name;
    }
	
	public GregorianCalendar getDate() {
        return Date;
    }
	
	 public void setDate(String Date) {
	        Calendar b = Calendar.getInstance();
	        String[] split = Date.split("/");
	        this.Date = new GregorianCalendar(Integer.parseInt(split[2]),
	                Integer.parseInt(split[0]),
	                Integer.parseInt(split[1]));
	    }
	  
	 
	 public void setTime(int Time) {
	        this.Time = Time;
	    }
	 
	 
	 public void setNumofPeople(int NumofPeople) {
	        this.NumofPeople = NumofPeople;
	    }
	 
	 public void setContact (int Contact){
		 	this.Contact = Contact;
	 }
	 
	 public String info(){
	        return "\nName: "+this.Name + "\nContact: " + this.Contact + "\nDate: " + 
	                this.Date.get(Calendar.MONTH)+"/"+
	                this.Date.get(Calendar.DATE)+"/"+
	                this.Date.get(Calendar.YEAR) + "\nTime: " + this.Time + 
	                "\nNumber of People: " + this.NumofPeople;
	    }
	 
	 public GregorianCalendar getTempDate(){
		 return TempDate;
	 }
	 
	 
	
	
	
   
}
	 
	 

